﻿@model _2._12._2015_Smartphone.Models.IndexViewModel
    @{
    ViewBag.Title = "Home Page";
    }

    <h2>@Model.Name Smartphones</h2>
    <div class="row">
        <div class="col-md-12">
            <table class="table table-bordered table-striped">
                <tr>
                    <th>Type</th>
                    <th>GPS</th>
                    <th>Makes Calls</th>
                    <th>Assistant</th>
                </tr>
                @foreach (var s in Model.SmartPhones)
                {
                <tr>
                    <td>@s.GetType().Name</td>
                    <td>@(s.HasGPS ? "Yes" : "No")</td>
                    <td>@(s.MakeCall ? "Yes" : "No")</td>
                    <td>@s.Assistant</td>
                </tr>
            }
            </table>
        </div>
    </div>